<?php echo form_open_multipart(uri_string())?>    
<?php $item = $query;?>
    <table class="form">
        <tr>
            <td class="label" style="width: 150px;"><?php echo lang('news_category_name');?></td>
            <td>
                <select id="parent_id" name="category_id" class="w300">
                    <option value=""> Danh mục gốc</option>
                    <?php echo $option_pid ?>
                </select>
            </td>
        </tr> 
     	 <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('news_name');?></td>
            <td><input type="text" name="title" id="title" class="w250" value="<?php echo $item->title;?>"></td>
        </tr> 
         <!--<tr>
            <td class="label" style="width: 150px;"><?php echo lang('news_name_en');?></td>
            <td><input type="text" name="title_en" id="title_en" class="w250" value="<?php echo $item->title_en;?>"></td>
        </tr>--> 
         <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('news_description');?></td>
            <td><textarea name="description" class="dimensions_textarea"><?php echo $item->description;?></textarea></td>
        </tr>
       <!-- <tr>
            <td class="label"></td>
            <td class=""><input class="submit" type="button" name="translate" value="<?php echo lang('admin_translate');?>" onclick="show_hide_tag('show_description_en');"/></td>
        </tr>
        <tr class="hidden" id="show_description_en">
            <td class="label" style="width: 150px;"><?php echo lang('news_description_en');?></td>
            <td><textarea name="description_en" class="dimensions_textarea"><?php echo $item->description_en;?></textarea>
          
            </td>
        </tr>-->
         <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('news_content');?></td>
            <td>
           		 <textarea name="content" class="mceAdvanced" style="width:800px; height:300px;" ><?php echo $item->content;?></textarea>
            </td>
        </tr>

         <tr>
            <td class="label" style="width: 150px;"><?php echo lang('news_keywords');?></td>
            <td><input type="text" name="seo_keyword" id="news_keywords" class="w250" value="<?php echo $item->seo_keyword;?>"></td>
        </tr>
         <tr>
            <td class="label" style="width: 150px;">Tags</td>
            <td><textarea name="tags" class="dimensions_textarea"><?php echo $item->tags;?></textarea></td>
        </tr>
        <tr>
            <td class="label" style="width: 150px;"><?php echo lang('news_order');?></td>
            <td><input type="text" name="nb_order" id="nb_order" class="w250" value="<?php echo $item->nb_order;?>"></td>
        </tr>
         
        <tr>
            <td class="label" style="width: 150px;">Hình ảnh đại diện</td>
            <td>                 <img alt="<?php echo $item->title;?>" src="<?php echo base_url_site()."uploads/images/news/avatar/".$item->image;?>" width="100">
                <br/>
                <input type="text" name="lb_image" class="w350" value="" id="file_name">
                <a href="<?php echo base_url()?>file_manager/img_lib/file_name" id="addimages" class="cboxElement" title="<?php echo lang('file_mng_add_file');?>"> <img src="<?php echo base_url()?>templates/images/icon/attach.png" alt=""> </a>

            </td>
        </tr>
        <tr>
            <td class="label" style="width: 150px;">Hẹn giờ đăng bài</td>
            <td>
            <input type="text" id="datepicker" size="30" name="dt_public" value="<?php echo $item->dt_public;?>" />
             
            </td>
        </tr>
        <script type="text/javascript">
	jQuery(document).ready(function() {	
		jQuery( "#datepicker" ).datepicker({dateFormat: 'yy-mm-dd'});
	});
	</script>
        <tr>
            <td class="label" style="width: 150px;"><?php echo lang('news_home');?></td>
           <td><input type="checkbox" name="bl_home" id="bl_active" checked  value="1"  onclick="setCheckboxValue(this);"></td>
        </tr>
        <tr>
            <td class="label"><?php echo lang('active_deactive');?></td>
            <td><input type="checkbox" name="bl_active" id="bl_active" checked  value="1"  onclick="setCheckboxValue(this);"></td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <input type="submit" name="bt_submit" value="" class="capnhat">
            </td>
        </tr>  
    </table>
<?php echo form_close()?>
    